package com.tancw.cloud.order.feign;

import com.tancw.cloud.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务Feign客户端
 */
@FeignClient(name = "cloud-user", path = "/user")
public interface UserFeignClient {
    
    @GetMapping("/{id}")
    Result<?> getUserById(@PathVariable("id") Long id);
}
